package fem2;


/**
 * Symbolic IDs and names for different field functions.
 * 
 * @author M. Baitsch
 * @author hbui
 */
public class FieldInfo {

	private static final String[] names = { "u1", "u2", "u3", "r1", "r2", "r3", "beta 2", "beta 1",
			"heat flux", "temperature", "lambda", "a", "h" };

	/** Displacement in u_1 direction */
	public static final int U1 = 0;
	/** Displacement in u_2 direction */
	public static final int U2 = 1;
	/** Displacement in u_3 direction */
	public static final int U3 = 2;
	/** Rotation about u_1 axis */
	public static final int R1 = 3;
	/** Rotation about u_2 axis */
	public static final int R2 = 4;
	/** Rotation about u_3 axis */
	public static final int R3 = 5;
	/** Rotation in u_2 direction */
	public static final int BETA2 = 6;
	/** Rotation in u_1 direction */
	public static final int BETA1 = 7;
	/** Heat flux in heat conduction problem */
	public static final int Q = 8;
	/** Temperature in heat conduction problem */
	public static final int T = 9;

	public static final int LAMBDA = 10;

	public static final int A = 11;

	public static final int H = 12;

	/**
	 * Returns the name of the specified field.
	 * 
	 * @param id
	 *            field id
	 * @return name
	 */
	public static String getFieldName(int id) {
		return names[id];
	}

	// private ArrayList<Integer> fieldList = new ArrayList<Integer>();
	//
	// public void addField(int id) {
	// fieldList.add(id);
	// }
	//
	// public int countFields() {
	// return fieldList.size();
	// }
	//
	// public int getField(int i) {
	// return fieldList.get(i);
	// }
}
